package com.xbongbong.paas.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.paas.constant.FieldAttrConstant;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import com.xbongbong.saas.enums.business.CommunicatePlanEnum;
import com.xbongbong.saas.enums.business.ContactEnum;
import com.xbongbong.saas.enums.business.ContractEnum;
import com.xbongbong.saas.enums.business.ContractPerformanceEnum;
import com.xbongbong.saas.enums.business.CustomerCommunicateEnum;
import com.xbongbong.saas.enums.business.InstockEnum;
import com.xbongbong.saas.enums.business.InvoiceEnum;
import com.xbongbong.saas.enums.business.OutstockEnum;
import com.xbongbong.saas.enums.business.PaymentEnum;
import com.xbongbong.saas.enums.business.PaymentSheetEnum;
import com.xbongbong.saas.enums.business.ProductionOrderEnum;
import com.xbongbong.saas.enums.business.PurchaseEnum;
import com.xbongbong.saas.enums.business.QuotationEnum;
import com.xbongbong.saas.enums.business.RefundEnum;
import com.xbongbong.saas.enums.business.RefundInstockEnum;
import com.xbongbong.saas.enums.business.ReturnedPurchaseEnum;
import com.xbongbong.saas.enums.business.ReturnedPurchaseOutstockEnum;
import com.xbongbong.saas.enums.business.SalesOpportunityEnum;
import com.xbongbong.saas.enums.business.WorkOrderEnum;
import lombok.Getter;

/**
 * 三项的后两项位置在程序里纠正
 *
 * @author 梁鲁江
 * @version v1.0
 * @date 2019/2/25 14:42
 * @since v1.0
 */
@Getter
public enum BiDefaultRelationEnum {
    /**
     * 客户作为主表
     */
    IDX_STATISTIC_CUSTOMER_OPP(209, "enum.biLink.name.idx_statistic_customer_opp", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + SalesOpportunityEnum.CUSTOMER_NAME .getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    SalesOpportunityEnum.CUSTOMER_NAME .getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_COMMUNICATE(210, "enum.biLink.name.idx_statistic_customer_communicate", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + CustomerCommunicateEnum.CUSTOMER_NAME.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    CustomerCommunicateEnum.CUSTOMER_NAME .getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_CONTRACT(211, "enum.biLink.name.idx_statistic_customer_contract", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.CONTRACT.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ContractEnum.LINK_CUSTOMER.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                        ContractEnum.LINK_CUSTOMER.getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_PAYMENT(212, "客户、应收款", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.PAYMENT.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.PAYMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + PaymentEnum.CUSTOMER.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    PaymentEnum.CUSTOMER.getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_INVOICE(213, "enum.biLink.name.idx_statistic_customer_invoice", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.INVOICE.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.INVOICE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + InvoiceEnum.CUSTOMER_NAME .getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    InvoiceEnum.CUSTOMER_NAME .getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_WORKORDER(214, "enum.biLink.name.idx_statistic_customer_workorder", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.WORK_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.WORK_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + WorkOrderEnum.LINK_CUSTOMER.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    WorkOrderEnum.LINK_CUSTOMER.getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_CONTACT(215, "enum.biLink.name.idx_statistic_customer_contact", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.CONTACT.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.CONTACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ContactEnum.CUSTOMER_NAME .getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    ContactEnum.CUSTOMER_NAME .getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_PAYMENT_SHEET(216, "客户、回款单", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.PAYMENT_SHEET.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.PAYMENT_SHEET.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + PaymentSheetEnum.CUSTOMER_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    PaymentSheetEnum.CUSTOMER_ID.getFieldType()+ "}}"),
    IDX_STATISTIC_CUSTOMER_COMMUNICATE_PLAN(217, "客户、访客计划", XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.COMMUNICATE_PLAN.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() +
                    "},\"" + XbbRefTypeEnum.COMMUNICATE_PLAN.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + CommunicatePlanEnum.LINK_CUSTOMER.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +
                    CommunicatePlanEnum.LINK_CUSTOMER.getFieldType()+ "}}"),
    /**
     * 合同作为主表
     */
    IDX_STATISTIC_CONTRACT_OPP(307, "enum.biLink.name.idx_statistic_contract_opp", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),
            "{\"" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType() + "},\""
                    + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ContractEnum.LINK_OPPORTUNITY .getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ContractEnum.LINK_OPPORTUNITY .getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_CONTRACT_PAYMENT_SHEET(309, "enum.biLink.name.idx_statistic_contract_payment_sheet", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.PAYMENT_SHEET.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                + XbbRefTypeEnum.PAYMENT_SHEET.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + PaymentSheetEnum.CONTRACT.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + PaymentSheetEnum.CONTRACT .getFieldType()+ "}" +
                "}"),
    IDX_STATISTIC_CONTRACT_INVOICE(310, "enum.biLink.name.idx_statistic_contract_invoice", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.INVOICE.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.INVOICE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + InvoiceEnum.CONTRACT_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + InvoiceEnum.CONTRACT_ID.getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_CONTRACT_WORK_ORDER(311, "enum.biLink.name.idx_statistic_contract_work_order", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.WORK_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.WORK_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + WorkOrderEnum.LINK_CONTRACT.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + WorkOrderEnum.LINK_CONTRACT.getFieldType()+ "}" +
                    "}"),

    IDX_STATISTIC_CONTRACT_QUOTATION(312, "enum.biLink.name.idx_statistic_contract_quotation", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.QUOTATION.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  ContractEnum.QUOTATION_ID.getAttr()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ContractEnum.QUOTATION_ID.getFieldType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "}" +
                    "}"),
    //TODO　　要特殊处理
/*    IDX_STATISTIC_CONTRACT_INSTOCK(312, "合同、入库单", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.INSTOCK.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + InstockEnum.REF_ID.getFieldType()+ "}" +
                    "}"),*/
    //TODO　　要特殊处理
    IDX_STATISTIC_CONTRACT_OUTSTOCK(313, "enum.biLink.name.idx_statistic_contract_outstock", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + OutstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + OutstockEnum.REF_ID.getFieldType()+ "}" +
                       "}"),
    /**
     * 业绩分配+合同
     */
    IDX_STATISTIC_CONTRACT_PERFORMANCE(314, "enum.biLink.name.idx_statistic_contract_performance", XbbRefTypeEnum.CONTRACT_PERFORMANCE.getCode() + "_" + XbbRefTypeEnum.CONTRACT.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_PERFORMANCE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ContractPerformanceEnum.CONTRACT_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ContractPerformanceEnum.CONTRACT_ID.getFieldType()+ "}" +
                    "}"),

    /**
     * 合同、退货退款
     */
    IDX_STATISTIC_CONTRACT_REFUND(315, "合同、退货退款", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.REFUND.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.REFUND.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + RefundEnum.CONTRACT_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + RefundEnum.CONTRACT_ID.getFieldType()+ "}" +
                    "}"),
    /**
     * 机会 作为主表
     */
    IDX_STATISTIC_OPP_PRODUCT(410, "enum.biLink.name.idx_statistic_opp_product", XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "_" + XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + SalesOpportunityEnum.PRODUCTS.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + SalesOpportunityEnum.PRODUCTS.getFieldType()+ "}" +
                      "}"),
    IDX_STATISTIC_OPP_COMMUNICATE(406, "机会、跟进记录", XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "_" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  CustomerCommunicateEnum.COMMUNICATE_BUSINESS .getAttr()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + CustomerCommunicateEnum.COMMUNICATE_BUSINESS.getFieldType()+ "},\"" +
                    + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "}" +
                    "}"),

    /**
     * 回款作为主表
     */
    IDX_STATISTIC_PAYMENT_INVOICE(506, "enum.biLink.name.idx_statistic_payment_invoice", XbbRefTypeEnum.PAYMENT_SHEET.getCode() + "_" + XbbRefTypeEnum.INVOICE.getCode(),
            "{\"" + XbbRefTypeEnum.PAYMENT_SHEET.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.INVOICE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + InvoiceEnum.PAYMENT_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + InvoiceEnum.PAYMENT_ID.getFieldType()+ "}" +
                        "}"),

    /**
     * 应收款
     */
    IDX_STATISTIC_PAYMENT_CONTRACT(506, "应收款、合同", XbbRefTypeEnum.PAYMENT.getCode() + "_" + XbbRefTypeEnum.CONTRACT.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PAYMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + PaymentEnum.CONTRACT.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + PaymentEnum.CONTRACT.getFieldType()+ "}" +
                    "}"),

    /**
     * 跟进记录作为主表
     */
    IDX_STATISTIC_COMMUNICATE_CONTRACT(703, "跟进记录、合同", XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  CustomerCommunicateEnum.COMMUNICATE_BUSINESS .getAttr()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + CustomerCommunicateEnum.COMMUNICATE_BUSINESS.getFieldType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "}" +
                    "}"),
    IDX_STATISTIC_COMMUNICATE_QUOTATION(704, "跟进记录、报价单", XbbRefTypeEnum.QUOTATION.getCode() + "_" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_COMMUNICATE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  CustomerCommunicateEnum.COMMUNICATE_BUSINESS .getAttr()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + CustomerCommunicateEnum.COMMUNICATE_BUSINESS.getFieldType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "}" +
                    "}"),
    /**
     * 供应商作为主表
     */
    IDX_STATISTIC_SUPPLIER_PURCHASE(1001, "enum.biLink.name.idx_statistic_supplier_purchase", XbbRefTypeEnum.SUPPLIER.getCode() + "_" + XbbRefTypeEnum.PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.SUPPLIER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + PurchaseEnum.SUPPLIER_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + PurchaseEnum.SUPPLIER_ID.getFieldType()+ "}" +
                      "}"),
    IDX_STATISTIC_SUPPLIER_RETURNED_PURCHASE(1001, "enum.biLink.name.idx_statistic_supplier_purchase", XbbRefTypeEnum.SUPPLIER.getCode() + "_" + XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.SUPPLIER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNED_PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ReturnedPurchaseEnum.LINK_SUPPLIER.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ReturnedPurchaseEnum.LINK_SUPPLIER.getFieldType()+ "}" +
                    "}"),
//    IDX_STATISTIC_SUPPLIER_INVENTORY_MANAGEMENT(1002, "idx_statistic_supplier_inventory_management", "supplier_inventory_management", "供应商、库存", XbbRefTypeEnum.SUPPLIER.getCode() + "_" + XbbRefTypeEnum.INVENTORY_MANAGEMENT.getCode(), -1),
    /**
     * 采购合同作为主表
     */
    IDX_STATISTIC_PURCHASE_RETURNED_PURCHASE(1101, "enum.biLink.name.idx_statistic_purchase_returned_purchase", XbbRefTypeEnum.PURCHASE.getCode() + "_" + XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNED_PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ReturnedPurchaseEnum.PURCHASE_SHEET_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ReturnedPurchaseEnum.PURCHASE_SHEET_ID.getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_PURCHASE_INSTOCK(1103, "enum.biLink.name.idx_statistic_purchase_instock",XbbRefTypeEnum.PURCHASE.getCode() + "_" + XbbRefTypeEnum.INSTOCK.getCode(),
            "{\"" + XbbRefTypeEnum.PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +  InstockEnum.REF_ID.getFieldType()+ "}" +
                       "}"),
    /**
     * 库存作为主表
     */
//    IDX_STATISTIC_INVENTORY_MANAGEMENT_PRODUCT(1301, "idx_statistic_inventory_management_product", "inventory_management_product", "库存、 产品",  XbbRefTypeEnum.INVENTORY_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.PRODUCT.getCode(), -1),
//    IDX_STATISTIC_INVENTORY_MANAGEMENT_SUPPLIER(1302, "idx_statistic_inventory_management_supplier", "inventory_management_supplier", "库存、 供应商",  XbbRefTypeEnum.INVENTORY_MANAGEMENT.getCode() + "_" + XbbRefTypeEnum.SUPPLIER.getCode(), -1),
    /**
     * 入库单作为主表
     */
    IDX_STATISTIC_INSTOCK_PRODUCTION_ORDER(1403, "enum.biLink.name.idx_statistic_instock_production_order",   XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode() + "_" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +  InstockEnum.REF_ID.getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_INSTOCK_RETURNED_MATERIEL(1404, "enum.biLink.name.idx_statistic_instock_returned_materiel",   XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode() + "_" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +  InstockEnum.REF_ID.getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_INSTOCK_PUCHASE(1405, "enum.biLink.name.idx_statistic_instock_puchase",   XbbRefTypeEnum.PURCHASE_INSTOCK.getCode() + "_" + XbbRefTypeEnum.PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PURCHASE_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +  InstockEnum.REF_ID.getFieldType()+ "}" +

                    "}"),
    IDX_STATISTIC_INSTOCK_REFUND(1405, "销售退货入库、退货退款",   XbbRefTypeEnum.REFUND_INSTOCK.getCode() + "_" + XbbRefTypeEnum.REFUND.getCode(),
            "{\"" + XbbRefTypeEnum.REFUND.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.REFUND_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  InstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +  RefundInstockEnum.REF_ID.getFieldType()+ "}" +

                    "}"),
    /**
     * 出库单作为主表
     */
    IDX_STATISTIC_OUTSTOCK_PRODUCTION_ORDER(1503,  "enum.biLink.name.idx_statistic_outstock_production_order",  XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode() + "_" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + OutstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + OutstockEnum.REF_ID.getFieldType()+ "}" +
                    "}"),
    IDX_STATISTIC_OUTSTOCK_RETURNED_PURCHASE(1202,  "enum.biLink.name.idx_statistic_returned_purchase_outstock", XbbRefTypeEnum.RETURNED_PURCHASE.getCode() + "_" + XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode(),
            "{\"" + XbbRefTypeEnum.RETURNED_PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ReturnedPurchaseOutstockEnum.REF_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ReturnedPurchaseOutstockEnum.REF_ID.getFieldType()+ "}" +
                    "}"),
    /**
     * 生成单
     */
    IDX_STATISTIC_BOM_BILL_PRODUCTION_ORDER(1618, "关联BOM清单、生产单",XbbRefTypeEnum.BOM_BILL.getCode() + "_" +  XbbRefTypeEnum.PRODUCTION_ORDER.getCode(),
            "{\"" + XbbRefTypeEnum.BOM_BILL.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID .getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + ProductionOrderEnum.BOM_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + ProductionOrderEnum.BOM_ID.getFieldType()+ "}" +
                    "}"),
    /**
     * 报价单
     */
    IDX_STATISTIC_QUOTATION_OPP(4701, "enum.biLink.name.idx_statistic_quotation_opp",XbbRefTypeEnum.QUOTATION.getCode() + "_" +  XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),
            "{\"" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + QuotationEnum.OPPORTUNITY_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" +QuotationEnum.OPPORTUNITY_ID.getFieldType()+ "}" +
                    "}"),

    IDX_STATISTIC_QUOTATION_CUSTOMER(4702, "enum.biLink.name.idx_statistic_quotation_customer",XbbRefTypeEnum.QUOTATION.getCode() + "_" +  XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode(),
            "{\"" + XbbRefTypeEnum.CUSTOMER_MANAGEMENT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + QuotationEnum.CUSTOMER_ID.getAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + QuotationEnum.CUSTOMER_ID.getFieldType()+ "}" +
                    "}"),

    //产品子表单======================================================================================================================
    /**
     * 产品（合同）-合同
     */
    IDX_STATISTIC_PRODUCT_CONTRACT_CONTRACT(600, "enum.biLink.name.idx_statistic_product_contract_contract",XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.CONTRACT.getCode() + "_" + XbbRefTypeEnum.CONTRACT.getCode(),
            "{\"" + XbbRefTypeEnum.CONTRACT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.CONTRACT_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（合同）-产品
     */
    IDX_STATISTIC_PRODUCT_CONTRACT_PRODUCT(605, "enum.biLink.name.idx_statistic_product_contract_product",XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_" + XbbRefTypeEnum.CONTRACT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.CONTRACT_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（退货退款）- 退货退款
     */
    IDX_STATISTIC_PRODUCT_REFUND_REFUND(610, "enum.biLink.name.idx_statistic_contract_product",XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.REFUND.getCode() + "_" + XbbRefTypeEnum.REFUND.getCode(),
            "{\"" + XbbRefTypeEnum.REFUND.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.REFUND_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（退货退款）- 产品
     */
    IDX_STATISTIC_PRODUCT_REFUND_PRODUCT(615, "enum.biLink.name.idx_statistic_product_refund_product",XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_" + XbbRefTypeEnum.REFUND.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.CONTRACT_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.REFUND_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售机会）- 销售机会
     */
    IDX_STATISTIC_PRODUCT_SALES_OP_SALES_OP(620, "enum.biLink.name.idx_statistic_product_sales_op_sales_op",XbbRefTypeEnum.SALES_OPPORTUNITY_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.SALES_OPPORTUNITY.getCode(),
            "{\"" + XbbRefTypeEnum.SALES_OPPORTUNITY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.SALES_OPPORTUNITY_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.SALES_OPPORTUNITY_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售机会）- 产品
     */
    IDX_STATISTIC_PRODUCT_SALES_PRODUCT(625, "enum.biLink.name.idx_statistic_product_sales_product",XbbRefTypeEnum.SALES_OPPORTUNITY_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.SALES_OPPORTUNITY_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.SALES_OPPORTUNITY_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（报价单）-报价单
     */
    IDX_STATISTIC_PRODUCT_QUOTATION_QUOTATION(630, "enum.biLink.name.idx_statistic_product_quotation_quotation",XbbRefTypeEnum.QUOTATION_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.QUOTATION.getCode(),
            "{\"" + XbbRefTypeEnum.QUOTATION.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.QUOTATION_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（报价单）- 产品
     */
    IDX_STATISTIC_PRODUCT_QUOTATION_PRODUCT(635, "enum.biLink.name.idx_statistic_product_quotation_product",XbbRefTypeEnum.QUOTATION_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.QUOTATION_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.QUOTATION_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（供应商）-供应商
     */
    IDX_STATISTIC_PRODUCT_SUPPLIER_SUPPLIER(640, "enum.biLink.name.idx_statistic_product_supplier_supplier",XbbRefTypeEnum. SUPPLIER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.SUPPLIER.getCode(),
            "{\"" + XbbRefTypeEnum.SUPPLIER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.SUPPLIER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.SUPPLIER_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（供应商）- 产品
     */
    IDX_STATISTIC_PRODUCT_SUPPLIER_PRODUCT(645, "enum.biLink.name.idx_statistic_product_supplier_product",XbbRefTypeEnum. SUPPLIER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.SUPPLIER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.QUOTATION_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（采购合同）-采购合同
     */
    IDX_STATISTIC_PRODUCT_PURCHASE_PURCHASE(650, "enum.biLink.name.idx_statistic_product_purchase_purchase",XbbRefTypeEnum.PURCHASE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PURCHASE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PURCHASE_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购合同）- 产品
     */
    IDX_STATISTIC_PRODUCT_PURCHASE_PRODUCT(655, "enum.biLink.name.idx_statistic_product_purchase_product",XbbRefTypeEnum. PURCHASE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PURCHASE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PURCHASE_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购退货）-采购退货
     */
    IDX_STATISTIC_PRODUCT_RETURNED_PURCHASE_RETURNED_PURCHASE(660, "enum.biLink.name.idx_statistic_product_returned_purchase_returned_purchase",XbbRefTypeEnum.RETURNEDPURCHASE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.RETURNED_PURCHASE.getCode(),
            "{\"" + XbbRefTypeEnum.RETURNED_PURCHASE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNEDPURCHASE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_PURCHASE_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购退货）-产品
     */
    IDX_STATISTIC_PRODUCT_RETURNED_PURCHASE_PRODUCT(665, "enum.biLink.name.idx_statistic_product_returned_purchase_product",XbbRefTypeEnum. RETURNEDPURCHASE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.RETURNEDPURCHASE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_PURCHASE_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 成品产品（BOM清单）-BOM清单
     */
    IDX_STATISTIC_PRODUCT_BOM_FINISH_BOM_FINISH(670, "enum.biLink.name.idx_statistic_product_bom_finish_bom_finish",XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.BOM_BILL.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.BOM_BILL.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.BOM_BILL_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 成品产品（BOM清单）- 产品
     */
    IDX_STATISTIC_PRODUCT_BOM_FINISH_PRODUCT(675, "enum.biLink.name.idx_statistic_product_bom_finish_product",XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.BOM_BILL_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 物料产品（BOM清单）-BOM清单
     */
    IDX_STATISTIC_PRODUCT_BOM_MATERIEL_BOM_MATERIEL(680, "enum.biLink.name.idx_statistic_product_bom_materiel_bom_materiel",XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.BOM_BILL.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.BOM_BILL.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.BOM_BILL_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 物料产品（BOM清单）- 产品
     */
    IDX_STATISTIC_PRODUCT_BOM_MATERIEL_PRODUCT(685, "enum.biLink.name.idx_statistic_product_bom_materiel_product",XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.BOM_BILL_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.BOM_BILL_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 成品产品（生产单）-生产单
     */
    IDX_STATISTIC_PRODUCT_ORDER_FINISH_ORDER_FINISH(690, "enum.biLink.name.idx_statistic_product_order_finish_order_finish",XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_ORDER_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 成品产品（生产单）- 产品
     */
    IDX_STATISTIC_PRODUCT_ORDER_FINISH_PRODUCT(695, "enum.biLink.name.idx_statistic_product_order_finish_product",XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_ORDER_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 物料产品（生产单）-生产单
     */
    IDX_STATISTIC_MATERIEL_PRODUCT_PRODUCTION_ORDER(700, "enum.biLink.name.idx_statistic_materiel_product_production_order",XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCTION_ORDER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_ORDER_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 物料产品（生产单）- 产品
     */
    IDX_STATISTIC_MATERIEL_PRODUCT_PRODUCTION_ORDER_PRODUCT(705, "enum.biLink.name.idx_statistic_materiel_product_production_order_product",XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.PRODUCTION_ORDER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_ORDER_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 装配出库产品（装配出入库单）-装配出入库单（入）
     */
    IDX_STATISTIC_PRODUCT_ASSEMBLE_ASSEMBLE(710, "enum.biLink.name.idx_statistic_product_assemble_assemble",XbbRefTypeEnum.ASSEMBLE_INPRODUCTS.getCode() + "_" +  XbbRefTypeEnum.ASSEMBLE.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.ASSEMBLE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.ASSEMBLE_INPRODUCTS.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.ASSEMBLE_PRODUCT_IN.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 装配出库产品（装配出入库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_ASSEMBLE_PRODUCT(715, "enum.biLink.name.idx_statistic_product_assemble_product",XbbRefTypeEnum.ASSEMBLE_INPRODUCTS.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.ASSEMBLE_INPRODUCTS.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.ASSEMBLE_PRODUCT_IN.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 装配入库产品（装配出入库单）-装配出入库单（出）
     */
    IDX_STATISTIC_OUT_PRODUCT_ASSEMBLE_ASSEMBLE(720, "enum.biLink.name.idx_statistic_out_product_assemble_assemble",XbbRefTypeEnum.ASSEMBLE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.ASSEMBLE.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.ASSEMBLE.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.ASSEMBLE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.ASSEMBLE_PRODUCT_OUT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 装配入库产品（装配出入库单）- 产品
     */
    IDX_STATISTIC_OUT_PRODUCT_ASSEMBLE_PRODUCT(725, "enum.biLink.name.idx_statistic_out_product_assemble_product",XbbRefTypeEnum.ASSEMBLE_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.ASSEMBLE_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.ASSEMBLE_PRODUCT_OUT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),


    /**
     * 产品（盘点单）-盘点单
     */
    IDX_STATISTIC_PRODUCT_INVENTORY_INVENTORY(730, "enum.biLink.name.idx_statistic_product_inventory_inventory",XbbRefTypeEnum.INVENTORY_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.INVENTORY.getCode(),
            "{\"" + XbbRefTypeEnum.INVENTORY.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INVENTORY_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.INVENTORY_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（盘点单） - 产品
     */
    IDX_STATISTIC_PRODUCT_INVENTORY_PRODUCT(735, "enum.biLink.name.idx_statistic_product_inventory_product",XbbRefTypeEnum.INVENTORY_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INVENTORY_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.INVENTORY_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（调拨单）-调拨单
     */
    IDX_STATISTIC_PRODUCT_TRANSFER_TRANSFER(740, "enum.biLink.name.idx_statistic_product_transfer_transfer",XbbRefTypeEnum.TRANSFER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.TRANSFER.getCode(),
            "{\"" + XbbRefTypeEnum.TRANSFER.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.TRANSFER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.TRANSFER_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（调拨单） - 产品
     */
    IDX_STATISTIC_PRODUCT_TRANSFER_PRODUCT(745, "enum.biLink.name.idx_statistic_product_transfer_product",XbbRefTypeEnum.TRANSFER_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode(),
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.TRANSFER_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.TRANSFER_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购入库单）-采购入库单
     */
    IDX_STATISTIC_PRODUCT_PURCHASE_INSTOCK_PURCHASE_INSTOCK(750, "enum.biLink.name.idx_statistic_product_purchase_instock_purchase_instock",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PURCHASE_INSTOCK.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PURCHASE_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PURCHASE_INSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购入库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_PURCHASE_INSTOCK_RODUCT(755, "enum.biLink.name.idx_statistic_product_purchase_instock_roduct",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode()+ "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PURCHASE_INSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售退货入库单）-销售退货入库单
     */
    IDX_STATISTIC_PRODUCT_REFUND_INSTOCK_REFUND_INSTOCK(760, "enum.biLink.name.idx_statistic_product_refund_instock_refund_instock",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.REFUND_INSTOCK.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.REFUND_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.REFUND_INSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售退货入库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_REFUND_INSTOCK_PRODUCT(765, "enum.biLink.name.idx_statistic_product_refund_instock_product",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.REFUND_INSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（其他入库单）-其他入库单
     */
    IDX_STATISTIC_PRODUCT_INSTOCK_INSTOCK(770, "enum.biLink.name.idx_statistic_product_instock_instock",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.OTHER_INSTOCK.getCode() + "_5",
            "{\"" + XbbRefTypeEnum.OTHER_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.OTHER_INSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（其他入库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_INSTOCK_PRODUCT(775, "enum.biLink.name.idx_statistic_product_instock_product",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_5",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.OTHER_INSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（生产入库单）-生产入库单
     */
    IDX_STATISTIC_PRODUCT_PRODUCTION_INSTOCK_PRODUCTION_INSTOCK(780, "enum.biLink.name.idx_statistic_product_production_instock_production_instock",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode() + "_7",
            "{\"" + XbbRefTypeEnum.PRODUCTION_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_INSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（生产入库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_PRODUCTION_INSTOCK_PRODUCT(785, "enum.biLink.name.idx_statistic_product_production_instock_product",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_7",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_INSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    /**
     * 产品（生产退料单）-生产退料单
     */
    IDX_STATISTIC_PRODUCT_RM_RM(790, "enum.biLink.name.idx_statistic_product_rm_rm",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode() + "_8",
            "{\"" + XbbRefTypeEnum.RETURNED_MATERIEL_INSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_MATERIEL_INSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（生产退料单）- 产品
     */
    IDX_STATISTIC_PRODUCT_RM_PRODUCT(795, "enum.biLink.name.idx_statistic_product_rm_product",XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_8",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.INSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_MATERIEL_INSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售出库单）-销售出库单
     */
    IDX_STATISTIC_PRODUCT_CONTRACT_OUTSTOCK_CONTRACT_OUTSTOCK(800, "enum.biLink.name.idx_statistic_product_contract_outstock_contract_outstock",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.CONTRACT_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.CONTRACT_OUTSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（销售出库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_CONTRACT_OUTSTOCK_PRODUCT(805, "enum.biLink.name.idx_statistic_product_contract_outstock_product",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_2",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.CONTRACT_OUTSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购退货出库单）-生产退料单
     */
    IDX_STATISTIC_PRODUCT_RETURNED_PURCHASE_OUTSTOCK_RETURNED_PURCHASE_OUTSTOCK(810, "enum.biLink.name.idx_statistic_product_returned_purchase_outstock_returned_purchase_outstock",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.RETURNED_PURCHASE_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_PURCHASE_OUTSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（采购退货出库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_RETURNED_PURCHASE_OUTSTOCK_PRODUCT(815, "enum.biLink.name.idx_statistic_product_returned_purchase_outstock_product",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_1",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.RETURNED_PURCHASE_OUTSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（其他出库单）-其他出库单
     */
    IDX_STATISTIC_PRODUCT_OUTSTOCK_OUTSTOCK(820, "enum.biLink.name.idx_statistic_product_outstock_outstock",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.OTHER_OUTSTOCK.getCode() + "_5",
            "{\"" + XbbRefTypeEnum.OTHER_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.OTHER_OUTSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（其他出库单）- 产品
     */
    IDX_STATISTIC_PRODUCT_OUTSTOCK_PRODUCT(825, "enum.biLink.name.idx_statistic_product_outstock_product",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_5",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.OTHER_OUTSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（生产领料单）-生产领料单
     */
    IDX_STATISTIC_PRODUCT_PRODUCTION_MATERIEL_OUTSTOCK(830, "enum.biLink.name.idx_statistic_product_production_materiel_outstock",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode() + "_8",
            "{\"" + XbbRefTypeEnum.PRODUCTION_MATERIEL_OUTSTOCK.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_MATERIEL_OUTSTOCK_PRODUCT.getVirtualLinkMainBusinessAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),

    /**
     * 产品（生产领料单）- 产品
     */
    IDX_STATISTIC_PRODUCT_PRODUCTION_MATERIEL_OUTSTOCK_PRODUCT(835, "enum.biLink.name.idx_statistic_product_production_materiel_outstock_product",XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "_" +  XbbRefTypeEnum.PRODUCT.getCode() + "_8",
            "{\"" + XbbRefTypeEnum.PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" +  FieldTypeEnum.DATAID .getAlias()  + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.DATAID.getType()+ "},\"" +
                    + XbbRefTypeEnum.OUTSTOCK_PRODUCT.getCode() + "\": { \"" + FieldAttrConstant.ATTR  + "\":\"" + BIProductReformEnum.PRODUCTION_MATERIEL_OUTSTOCK_PRODUCT.getVirtualLinkProductAttr() + "\",\"" + FieldAttrConstant.FIELD_TYPE + "\":" + FieldTypeEnum.LINK_BUSINESS_SINGLE.getType()+ "}" +
                    "}"),
    ;
    /**
     * 编号标示
     */
    private Integer code;
    /**
     * 名称
     */
    private String name;
    /**
     * 联合code
     */
    private String mutiCode;
    /**
     * 默认关联字段
     */
    private String defaultAttr;

    BiDefaultRelationEnum(Integer code, String name, String mutiCode, String defaultAttr) {
        this.code = code;
        this.name = name;
        this.mutiCode = mutiCode;
        this.defaultAttr = defaultAttr;
    }

    /**
     * 根据mutiCode获取枚举
     * @param mutiCode 联合code
     * @return
     */
    public static BiDefaultRelationEnum getByMutiCode(String mutiCode) {
        for (BiDefaultRelationEnum cacheCode : values()) {
            if (mutiCode.equals(cacheCode.getMutiCode())) {
                return cacheCode;
            }
        }
        return null;
    }

    /**
     * 根据code获取枚举
     * @param  code
     * @return
     */
    public static BiDefaultRelationEnum getByCode(Integer code) {
        for (BiDefaultRelationEnum cacheCode : values()) {
            if (code.equals(cacheCode.getCode())) {
                return cacheCode;
            }
        }
        return null;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
